package com.java80.springmall.cloud.zuul;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

import com.java80.springmall.cloud.zuul.fillter.TokenFilter;
@SpringBootApplication
@EnableZuulProxy
@EnableEurekaClient
public class ZuulApplication {
	public static void main(String[] args) {
		 SpringApplication.run(ZuulApplication.class, args);
		 System.out.println("===Zuul网关已启动===");
	}
	@Bean
	public TokenFilter tokenFilter() {
	    return new TokenFilter();
	}
}
